import { Form } from '@ant-design/compatible';
import react, {Component} from 'react'

const FormItem = Form.Item;

export default class FormItemWrapper extends Component {

    constructor(props) {
        super(props);
    }

    render() {

        const { labelCol= {span: 4}, 
                labelAlign= "left",
                wrapperCol = {span: 20},
                label = '图文标题',
                className,
                placeholder,
                type,
                children
            }  = this.props;
        return (
            <FormItem
                labelCol={labelCol}
                labelAlign={labelAlign}
                wrapperCol={wrapperCol}
                label={label}
                className={className}
            >
            {children}
            </FormItem>
        )
    }
}

